/******************************************************************************
* File description: maintenanceothers.cpp
* Function: 其他维护页面
* Current Version: 1.0.0
* Author: 张宇轩
* Date: 2024-08-30
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/
#include "maintenanceothersui.h"

MaintenanceOthersUI::MaintenanceOthersUI()
{
    this->setResizeMode(QQuickWidget::SizeRootObjectToView);
    this->setWindowTitle("其他维护");
    this->setWindowFlags(Qt::Window | Qt::WindowCloseButtonHint);
    this->setFixedSize(440, 330);
    this->_rootContext = this->getContext();
    // 传入AnalysisConfigNewUI类
    this->rootContext()->setContextProperty("maintenanceOthersUi", this);
    // 资源加载
    this->setSource(QUrl("qrc:/maintenanceothers.qml"));
    this->_rootObj = this->getRootObject();
    if(_rootObj)
    {

    }
}

MaintenanceOthersUI::~MaintenanceOthersUI() {}

/**
 * @brief getContext 获取qmlcontext
 * @return qmlContext
 */
QQmlContext* MaintenanceOthersUI::getContext() const
{
    return this->rootContext();
}

/**
 * @brief getRootObject 获取rootObject
 * @return rootObject
 */
QObject* MaintenanceOthersUI::getRootObject() const
{
    return (QObject*)this->rootObject();
}
